package com.xh.demo.client;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import com.xh.demo.commons.model.Result;
import com.xh.demo.model.table.User;
import retrofit2.http.*;

@RetrofitClient(baseUrl = "${retrofit.api.baseUrl}", poolName = "test1")
public interface ThreadPoolHttpApi {

    @GET("user")
    Result<User> getUser(@Query("id") Long id);

    @POST("user")
    Result<User> saveUser(@Body User user);

    @GET("user/{id}")
    Result<User> getUserV2(@Path("id") Long id);

}